package com.xinqi.modules.sys.sensitive.word.client;

import com.xinqi.common.base.constants.ServiceNameConstants;
import com.xinqi.common.base.response.PageInfo;
import com.xinqi.common.base.response.R;
import com.xinqi.modules.sys.sensitive.word.dto.req.SensitiveWordQueryDTO;
import com.xinqi.modules.sys.sensitive.word.dto.rsp.SensitiveWordResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 敏感词管理表客户端
 *
 * @author: wenjie
 * @date: 2023/08/02
 */
@FeignClient(contextId = "sensitiveWordClient", value = ServiceNameConstants.XQ_SYS)
public interface SensitiveWordClient {
    String INNER_PREFIX = "/inner/sensitive-word";

    /**
     * 敏感词管理表-分页
     */
    @GetMapping(INNER_PREFIX + "/page")
    R<PageInfo<SensitiveWordResultDTO>> page(SensitiveWordQueryDTO dto);

    /**
     * 敏感词管理表-详情
     */
    @GetMapping(INNER_PREFIX + "/{id}")
    R<SensitiveWordResultDTO> findById(@PathVariable("id") Long id);

}
